package com.ruoyi.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.project.domain.entity.*;
import com.ruoyi.project.domain.query.ProjectCustomQuery;
import com.ruoyi.project.domain.query.ProjectFeeQuery;
import com.ruoyi.project.mapper.ProjectCustomMapper;
import com.ruoyi.project.mapper.ProjectFeeMapper;
import com.ruoyi.project.service.*;
import com.ruoyi.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;


@Service
public class ProjectCustomerServiceImpl extends ServiceImpl<ProjectCustomMapper, ProjectCustom> implements IProjectCustomerService {
    @Resource
    private ProjectFeeMapper projectFeeMapper;

    @Resource
    private ISysUserService sysUserService;

    @Resource
    private IProjectParticipanService projectParticipanService;

    @Resource
    private IProjectGjpUserService projectGjpUserService;

    @Resource
    private IProjectService projectService;

    @Autowired
    private RedisCache redisCache;

    @Resource
    private IProjectCustomerService customerService;

    @Resource
    private IProjectSaleService saleService;

    @Resource
    IProjectAccountingService accountingService;

    @Resource
    ProjectCustomMapper customerMapper;


    @Override
    public List<ProjectCustom> selectGroupBySaleId(ProjectCustomQuery query) {
        List<ProjectCustom> list = customerMapper.selectGroupBySaleId(query);
        return list;
    }
}
